package net.wangds.auth.user.repo.rdbms;

import net.wangds.auth.module.UserValidateStatusEnum;
import net.wangds.auth.user.entity.AndroidUserEntity;
import net.wangds.auth.user.entity.EmailUserEntity;
import org.springframework.stereotype.Repository;

@Repository
public interface EmailUserJpaRepo extends AbstractAccountRefRepo<EmailUserEntity> {

    EmailUserEntity findByAccountIdAndEmail(String accountId, String email);

    boolean existsByEmailAndValidateStatus(String email, UserValidateStatusEnum status);

    boolean existsByEmail(String email);

}
